package com.clickfarm.project.cf.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.clickfarm.framework.aspectj.lang.annotation.Excel;
import com.clickfarm.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 公告对象 cf_notice
 * 
 * @author clickfarm
 * @date 2020-06-10
 */
public class CfNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String topic;

    /** 正文 */
    @Excel(name = "正文")
    private String content;

    /** 创建者 */
    @Excel(name = "创建者")
    private Long creater;

    /** 修改者 */
    @Excel(name = "修改者")
    private Long updater;

    /** 修改者 */
    @Excel(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;

    /** 修改者 */
    @Excel(name = "修改时间")
    private Date updatetime;

    /** 创建人*/
    private String username;

    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTopic(String topic)
    {
        this.topic = topic;
    }

    public String getTopic()
    {
        return topic;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setCreater(Long creater)
    {
        this.creater = creater;
    }

    public Long getCreater()
    {
        return creater;
    }
    public void setUpdater(Long updater)
    {
        this.updater = updater;
    }

    public Long getUpdater()
    {
        return updater;
    }

    public Date getCreatetime(){return  createtime;}

    public Date getUpdatetime(){return  updatetime;}
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("topic", getTopic())
            .append("content", getContent())
            .append("creater", getCreater())
            .append("updater", getUpdater())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdatetime())
            .toString();
    }
}
